#ifndef TIMESET_H
#define TIMESET_H

#include <QWidget>
#include "blldataflow.h"
#include "shadow.h"
#include "datetimepicker.h"
#include "commonfunction.h"

namespace Ui {
class TimeSet;
}

class TimeSet : public QWidget
{
    Q_OBJECT

public:
    explicit TimeSet(QWidget *parent = nullptr);
    ~TimeSet();

private slots:
    void on_btnOK_clicked();
    void retranslateUiSlot();
    void on_btnTimeEdit_clicked();
    void on_btnDateEdit_clicked();
    void setCurrentTimeSlot(int);

private:
    void changeDateTime(QDateTime dateTime, QString whatsThis);
    //yyyy-MM-dd hh:mm:ss  2020-10-01 01:02:03
    bool setSystemTime(const QString &datetime);

private:
    Ui::TimeSet *ui;
    BllDataFlow * bdf;
    DateTimePicker * timePicker;
    DateTimePicker * datePicker;
};

#endif // TIMESET_H
